home *** CD-ROM | disk | FTP | other *** search
/ How Many Bugs in a Box / How Many Bugs in a Box.cdr / bugs / submenu / 00297_quitbox1.ls < prev    next >
Encoding:
Text File  |  1995-03-29  |  680 b   |  28 lines

  1. on mouseDown
  2.   set castigate to the number of cast "quitbox2"
  3.   set the castNum of sprite the clickOn to castigate
  4.   startTimer()
  5.   set tstep to 10
  6.   puppetSound("Sound 6")
  7.   repeat while the mouseDown
  8.     set ttime to the timer / tstep
  9.     if ttime < 4 then
  10.       set the castNum of sprite the clickOn to the number of cast ("quitbox" & ttime + 1)
  11.       updateStage()
  12.     end if
  13.   end repeat
  14.   startTimer()
  15.   set ttime to 0
  16.   repeat while ttime < 4
  17.     set ttime to the timer / tstep
  18.     if ttime < 4 then
  19.       set the castNum of sprite the clickOn to the number of cast ("quitbox" & 4 - ttime)
  20.       updateStage()
  21.     end if
  22.   end repeat
  23. end
  24.  
  25. on mouseUp
  26.   go(1, "submenu")
  27. end
  28.